package com.atguigu.day17.work2;

import org.junit.Test;

public class Work07 {
    @Test
    public void test1(){
        String str="noon";
        System.out.println(str);
        StringBuilder s=new StringBuilder(str);
        String string=s.reverse().toString();
        System.out.println("回文数");
        if (str.equals(string)){
            System.out.println(true);
        }else {
            System.out.println(false);
        }
    }
}
